import SwiftUI
struct InfoStackView: View {
    static let now = Date()
    static let dateFormatter: DateFormatter = {
    let formatter = DateFormatter()
    formatter.dateStyle = .long
    return formatter
    }()
    
    var body: some View {
        HStack {
            
            Text("The time is: \(InfoStackView.now, formatter: Self.dateFormatter)")
                .font(.title)
                .padding()

            }
        
            
        }

}
struct InfoStackView_Previews: PreviewProvider {
    static var previews: some View {
        InfoStackView()
    }
}
